package com.imageChat.card;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;

public class LoginWindow extends JFrame implements ActionListener{

	private JPanel contentPane;
	private JButton btnReady;
	private boolean ready = false;

	/**
	 * Create the frame.
	 */
	public LoginWindow() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 328, 174);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		JLabel lblReady = new JLabel("\uB808\uB514!");
		lblReady.setBounds(143, 49, 28, 15);
		panel.add(lblReady);
		
		btnReady = new JButton("READY");
		btnReady.setBounds(118, 74, 73, 23);
		panel.add(btnReady);
		btnReady.addActionListener(this);
		
		setVisible(true);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
		if(e.getSource() == btnReady){
			
			ready = true;
			setVisible(false);
		}
	}

}
